home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PRIVATE.ZIP
/
_FINDWIN.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
48 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#ifdef REGISTERWINDOWS
#ifndef NDEBUG
char *rcsid__findwin = "$Header: c:/curses/private/RCS/_findwin.c%v 2.0 1992/11/15 03:24:42 MH Rel $";
#endif
/*man-start*********************************************************************
PDC_findwin() - Find a window in the visible windows list.
PDCurses Description:
This is a private PDCurses routine.
This routine is a part of the developing window registration
system that will reach maturity soon.
This routine returns the passed WINDOW*'s WINDS pointer.
PDCurses Return Value:
This function returns OK on success and ERR on error.
PDCurses Errors:
No errors are defined for this function.
Portability:
PDCurses WINDS* PDC_findwin( WINDOW* win );
**man-end**********************************************************************/
WINDS* PDC_findwin(WINDOW *win)
{
WINDS* next = _cursvar.visible;
while (next != (WINDS *)NULL)
{
if (next->w == win)
break;
next = next->next;
}
return( next );
}
#endif